﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.ContentManagement.Records;
using Orchard.Data.Conventions;

namespace Wng.Deployment.Models {
    public class ScheduledTaskRunHistory {
        public virtual int Id { get; set; }
        public virtual string ExecutionId { get; set; }
        public virtual DateTime? RunStartUtc { get; set; }
        public virtual DateTime? RunCompletedUtc { get; set; }
        public virtual RunStatus RunStatus { get; set; }

        public virtual ContentItemRecord ContentItemRecord { get; set; }
    }

    public enum RunStatus {
        Started,
        Running,
        Success,
        Fail,
        Cancelled
    }
}